package com.simtop.car.mapper;

import com.simtop.car.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface AdminMapper {
    BrandType checkBrandType(@Param("brandName") String brandName,@Param("companyName") String companyName);

    int addBrandType(@Param("typeId") Integer typeId, @Param("brandName") String brandName,@Param("companyName") String companyName);

    int deleteBrandType(@Param("brandTypeId") Integer brandTypeId);

    int updateBrandType(BrandType brandType);

    void deleteUser(@Param("date") Date date);

    void deleteFormData();

    Integer updateVideo(Video video);

    List<Video> getIndexVideo();

    Title getTitle(@Param("titleId") Integer titleId);

    int updateTitle(Title title);

    Integer deleteWeiBo(int[] dataIdArray);

    Integer deleteWeChat(int[] dataIdArray);

    Integer deleteNews(int[] dataIdArray);

    Integer deleteRecruitment(int[] dataIdArray);

    Integer deletePatent(int[] dataIdArray);

    Integer deleteBusinessInformation(int[] dataIdArray);

    Integer deleteCommunityForum(int[] dataIdArray);

    Integer deleteCorporateAnnualReports(int[] dataIdArray);

    Integer deleteCompanyWebsite(int[] dataIdArray);

    Integer addDiscuss(Grade grade);

    Integer addManual(Manual manual);

    List<Manual> getManuals();

    Manual getSingleManual(@Param("manualId") Integer manualId);

    Integer deleteManual(@Param("manualId") Integer manualId);

    Integer updateManual(Manual manual);
}
